package com.topvision.service.impl.zwan;

import com.topvision.annotation.DataSource;
import com.topvision.db.DataSourceConstants;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.topvision.mapper.zwan.SysdevicevendorMapper;
import com.topvision.model.zwan.Sysdevicevendor;
import com.topvision.service.zwan.SysdevicevendorService;

@Service("sysdevicevendorService")
public class SysdevicevendorServiceImpl implements SysdevicevendorService {
	@Autowired
	private SysdevicevendorMapper sysdevicevendorMapper;
	
	@Override
	@DataSource(DataSourceConstants.ORACLE_PORTAL_SLAVE)
	public Sysdevicevendor queryObject(BigDecimal devicevendorid){
		return sysdevicevendorMapper.queryObject(devicevendorid);
	}
	
	@Override
	@DataSource(DataSourceConstants.ORACLE_PORTAL_SLAVE)
	public List<Sysdevicevendor> queryList(Map<String, Object> map){
		return sysdevicevendorMapper.queryList(map);
	}
	
	@Override
	@DataSource(DataSourceConstants.ORACLE_PORTAL_SLAVE)
	public int queryTotal(Map<String, Object> map){
		return sysdevicevendorMapper.queryTotal(map);
	}
	
	@Override
	@DataSource(DataSourceConstants.ORACLE_PORTAL_SLAVE)
	public void save(Sysdevicevendor sysdevicevendor){
		sysdevicevendorMapper.save(sysdevicevendor);
	}
	
	@Override
	@DataSource(DataSourceConstants.ORACLE_PORTAL_SLAVE)
	public void update(Sysdevicevendor sysdevicevendor){
		sysdevicevendorMapper.update(sysdevicevendor);
	}
	
	@Override
	@DataSource(DataSourceConstants.ORACLE_PORTAL_SLAVE)
	public void delete(BigDecimal devicevendorid){
		sysdevicevendorMapper.delete(devicevendorid);
	}
	
	@Override
	@DataSource(DataSourceConstants.ORACLE_PORTAL_SLAVE)
	public void deleteBatch(BigDecimal[] devicevendorids){
		sysdevicevendorMapper.deleteBatch(devicevendorids);
	}

	@Override
	@DataSource(DataSourceConstants.ORACLE_PORTAL_SLAVE)
	public List<Map<String, Object>> allList() {
		return sysdevicevendorMapper.allList();
	}


}
